package com.bee.study.redis;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import redis.clients.jedis.Jedis;

import javax.annotation.Resource;

/**
 * @version 1.0.0
 * @Author yong.Mr
 * @data 2020-9-19
 */
@RestController
@RequestMapping("/study")
public class TestRedis {

    @Resource
    private com.bee.study.common.BDRedis bdRedis;
    @Resource
    private Jedis jedis;

    @RequestMapping("/test")
    public void test() throws Exception {
        for (int i = 0; i < 10; i++) {
            jedis.zadd("aa",(System.currentTimeMillis() + 1000*60*2),"userNo" + i);
//            Thread.sleep(5000);
        }
        System.out.println("csa");
    }

}
